﻿using System.Drawing;
using System.Windows.Forms;
using RMS.DB;

namespace RMS.Common
{
    public class ICommonForm : Form
    {
        public ICommonForm()
        {
            ChangeFormFonts();
            //GetShopInfo();            
        }

        public void GetShopInfo()
        {
            
        }

        static Font font = new Font("Arial", (float)8.35);

        public void ChangeFormFonts()
        {
            this.Font = font;
            foreach (Control control in this.Controls)
            {
                ChangeControlsFonts(control);
            }
        }
        private static void ChangeControlsFonts(Control container)
        {
            foreach (Control ctrl in container.Controls)
            {
                ctrl.Font = font;
                ChangeControlsFonts(ctrl);
            }
        }
    }
}
